import axios from "axios";
import Result from "@/ts/returnType.ts";

const getProvinceStatisticsApi = () : Promise<Result> => {
    return axios({
        url: '/statistics/province',
        method: 'get'
    })
}

const getAqiDistributionStatisticsApi = () : Promise<Result> => {
    return axios({
        url: '/statistics/aqiDistribution',
        method: 'get'
    })
}

const getAqiTrendStatisticsApi = () : Promise<Result> => {
    return axios({
        url: '/statistics/aqiTrend',
        method: 'get'
    })
}

const getOtherStatisticsApi = () : Promise<Result> => {
    return axios({
        url: '/statistics/others',
        method: 'get'
    })
}

export { getProvinceStatisticsApi, getAqiDistributionStatisticsApi, getAqiTrendStatisticsApi, getOtherStatisticsApi}
